﻿using UnityEngine;
using System.Collections;

using AssemblyCSharp;

public class Planet : MonoBehaviour {

	public SpaceInfoService mSpaceInfoService = null;

	// Use this for initialization
	void Start () {
		// Read Xml and Get Axis, Time
		mSpaceInfoService = SpaceInfoService.Instance;
		mSpaceInfoService.getSpaceDomain ();

		// Get Name and Domain
		string name = this.gameObject.name;
		PlanetDomain mPlanetDomain = mSpaceInfoService.getPlanet (name, typeof(PlanetDomain));
		RotationDomain mRotationDomain = mPlanetDomain.RotationDomain;
		RevolutionDomain mRevolutionDomain = mPlanetDomain.RevolutionDomain;
	}

	// Update is called once per frame
	void Update () {

		this.transform.Rotate (Vector3.up * 100 * Time.deltaTime);
	}
}
